import 'package:flutter_secure_storage/flutter_secure_storage.dart';
import 'package:uuid/uuid.dart';

Future<String> getUUID() async {
  var storage = const FlutterSecureStorage();
  var key = await storage.read(key: "ab_ceramics_uuid");
  if (key == null) {
    key = const Uuid().v4().toUpperCase();
    await storage.write(key: "ab_ceramics_uuid", value: key);
  }
  return key;
}